<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@page isELIgnored="false"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
      <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <meta http-equiv="Pragma" content="no-cache">
   <meta http-equiv="Cache-Control" content="no-cache">
   <meta http-equiv="Expires" content="0">
    <title></title>
	<title></title>
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/css/zoom.css">
    <link href="${pageContext.request.contextPath}/static/assets/css/bootstrap.css" rel="stylesheet" />
    <link href="${pageContext.request.contextPath}/static/assets/css/font-awesome.css" rel="stylesheet" />
    <link href="${pageContext.request.contextPath}/static/assets/css/custom-styles.css" rel="stylesheet" />
      <!-- Morris Chart Styles -->
      <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/css/style.css" />
   <link rel="stylesheet" href="${pageContext.request.contextPath}/static/assets/css/profile.css">
    <link href="${pageContext.request.contextPath}/static/assets/js/dataTables/dataTables.bootstrap.css" rel="stylesheet" />     
</head>
<body>
	<div id="wrapper">
		<div id="page-wrapper" >
			<div id="page-inner">
			 	<div class="row">
                    <div class="col-md-12">
                        <h1 class="page-header">
                           Certification <small>details</small>
                        </h1>
                    </div>
              	</div> 
              	<div class="row">
              		<div class="col-md-12">
                    	<!-- Advanced Tables -->
                    	<div class="col-sm-12">                             
                        	<div class="col-xs-12 col-sm-8 profile-name col-lg-7" >
                            	<h2>司机认证详细信息
                            		<span class="pull-right social-profile"> 
	                            		<em class="entypo-facebook-circled"></em> 
	                            		<em class="entypo-twitter-circled"></em> 
	                            		<em class="entypo-linkedin-circled"></em> 
	                            		<em class="entypo-github-circled"></em> 
	                            		<em class="entypo-gplus-circled"></em> 
                            		</span> 
                            	</h2>
                                <hr>
                                	<form:form method="post" commandName="Authinfo" >
                                   		<form:hidden path="id" value="${Authinfo.id}"/>
                                   		<form:hidden path="userCode" value="${Authinfo.userCode}"/>
                                   		<dl class="dl-horizontal-profile">
                                    		<dt>认证用户</dt>
                                        	<dd>${Authinfo.userCode}</dd>                                        
                                        	<dt>真实姓名</dt>
                                        	<dd><form:input path="realname" /></dd>                                       
                                        	<dt>车牌号</dt>
                                        	<dd><form:input path="carNo"  /></dd>                                        
                                        	<dt>品牌</dt>
                                         	<dd><form:input path="carBrand"  /></dd>                                        
                                        	<dt>车辆颜色</dt>
                                         	<dd><form:input path="carColor"  /></dd>                                        
                                         	<dt>车辆型号</dt>
                                         	<dd><form:input path="carModel"  /></dd>                                         
                                         	<dt>注册日期</dt>
                                         	<dd><fmt:formatDate value="${Authinfo.registerDate}" pattern="yyyy-MM-dd HH:mm"/></dd>
                                         	<dt>用户头像</dt>
                                        	<dd ><img   src="${Authinfo.displayPic}" data-action="zoom" width="334px" ></dd>                                         
                                         	<dt>驾驶证</dt>
                                        	<dd ><img   src="${Authinfo.driverImg}" data-action="zoom" width="334px" ></dd>
                                        	<dt>行驶证</dt>
                                        	<dd><img  src="${Authinfo.drivingBookImg}" data-action="zoom" width="334px" ></dd>   
                                        	<dt>认证状态</dt>
                                      		<dd> 	                                
		                                    	<form:select path="checkState" id="checkState">                                      
		                                        	<form:option  value="0" label="认证中"/>
		                                        	<form:option  value="1" label="认证通过" />
		                                        	<form:option  value="2" label="认证失败" />
	                                        	</form:select>                       
                                        	</dd> 
                                        	<dt>头像审核</dt>
                                      		<dd> 	                                
		                                    	<form:select path="isImg" id="checkState">                                      
		                                        	<form:option  value="0" label="丑炸"/>
		                                        	<form:option  value="1" label="完美" />
	                                        	</form:select>                       
                                        	</dd> 
                                        	<dt>体验券赠送</dt>
                                      		<dd>     		
                                      		<form:select path="expID" id="expID"> 
                                      			<form:option value = "" label ="无" />
                                      	    <c:forEach items ="${expList}" var="exp">
                                      	    	<form:option value = "${exp.id}" label = "${exp.activityName}" />
                                      	    </c:forEach>	
                                      	    </form:select>                                              
                                        	</dd> 
                                        <div class="sss" style="color:#FF0004"></div>
                                    </dl>
                                	<td><input type="submit" value="提交" onclick="sb()"></td>
								</form:form>
   							</div>
   						</div>
   					</div>
 				</div>  
   			</div>
   		</div>
   </div>
   	<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
  	<script src="https://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
    <script src="${pageContext.request.contextPath}/static/assets/js/jquery-1.10.2.js"></script>
    <script src="${pageContext.request.contextPath}/static/assets/js/bootstrap.min.js"></script>
    <script src="${pageContext.request.contextPath}/static/assets/js/jquery.metisMenu.js"></script>
    <script src="${pageContext.request.contextPath}/static/assets/js/dataTables/jquery.dataTables.js"></script>
    <script src="${pageContext.request.contextPath}/static/assets/js/dataTables/dataTables.bootstrap.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/js/showdate.js"></script>
    <script src="${pageContext.request.contextPath}/static/js/zoom.js"></script>
    <script type=”text/javascript“ src="${pageContext.request.contextPath}/js/test.js?+Math.random()"></script> 
    <script>
    	$(function() {
    		$(document).ready(function () {

                
                if($("#authState").val() == '1') {
                	$("#authState").attr("disabled", false);
                }
                if($("#authState").val() == '0') {
                	$("#authState").attr("disabled", false);
                }
                if($("#authState").val()=='2'){
                	$("#authState").attr("disabled", false);	
                }      
            });
                
            $(".llll").click(function(){
                alert("Value: " +$("#name").val());
            });

    	})
    	
		function sub(){
			var lll=document.getElementById("note").value;
			var ww=$("<dd></dd>").text(lll);
			var ee=$("<dt></dt>").text("备注")
			$(".sss").append(ee,ww)
		}
    	function foo(obj){
  	    	obj.selectedIndex=0;
    	}    	
    	function sb() {
    		if (window.confirm("是否确认要提交?")) { 
	    		// 确认时做的操作 
	    		alert("点的确认");
    		} else { 
	    		// 取消时做的操作 
	    		alert("点的取消");
    		} 
   		}
	</script>   
</body>
</html>
